#pragma once

#include "NtVisibleObject.h"
#include "NtD3DMaterial9.h"

typedef std::vector< NtD3DMaterial9 > NtD3DMaterial9Vector;

class NtVO_Mesh: public NtVisibleObject
{
public:
	NtVO_Mesh(void);
	virtual ~NtVO_Mesh(void);

	virtual void Render();
	virtual void Update(DWORD dwTimer);

	LPD3DXMESH	GetMesh() const 
	{
		return m_pMesh;
	}

	BOOL LoadX(const char* szXFile);

protected:
	void ResetMesh();

protected:
	LPD3DXMESH	m_pMesh;
	NtD3DMaterial9Vector m_MaterialVector;
};

NtAutoPtr(NtVO_Mesh);

